package com.nmsl.masterdocker.mapper;

import com.nmsl.masterdocker.domain.HospitalizationRegistrationZY;

import java.util.List;

/**
 * @author 35074
 * @description 针对表【hospitalization_registration(住院登记表)】的数据库操作Mapper
 * @createDate 2025-02-18 17:44:01
 * @Entity com.nmsl.masterdocker.domain.HospitalizationRegistrationZY
 */
public interface HospitalizationRegistrationZYMapper {

    // 根据主键删除记录
    int deleteByPrimaryKey(Long id);

    // 向数据库中插入住院登记信息
    int insert(HospitalizationRegistrationZY record);

    int insertSelective(HospitalizationRegistrationZY record);

    // 根据主键查询记录
    HospitalizationRegistrationZY selectByPrimaryKey(Long id);

    // 根据主键更新记录
    int updateByPrimaryKeySelective(HospitalizationRegistrationZY record);

    // 根据主键更新医院住院登记信息
    int updateByPrimaryKey(HospitalizationRegistrationZY record);

    List<HospitalizationRegistrationZY> selectpatientByDoctorId(Long doctorId);//根据医生的id查询该医生所治疗住院病人

    // 根据住院登记信息查询患者信息
    List<HospitalizationRegistrationZY> selectpatientByHospitalization(HospitalizationRegistrationZY hospitalizationRegistrationZY);

}
